package pl.com.betacom.scjp.j2se5practiceExam;

enum Colors { BLUE, GREEN, YELLOW, RED }
public class Q30Picture {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int x = 0;
		Colors c = Colors.GREEN;
		switch (c) {
		case BLUE:
			System.out.println(c);
		case GREEN:
			System.out.println(c);
		case YELLOW:
			System.out.println(c);
		default:
			System.out.println(" BlackWhite");
			break;
		case RED:
			System.out.println(c);
		}

		System.out.println(" PicturePerfect");

		// Some test - whether it's a switch and not some wierd enum behaviour
		int i = 0;
		switch (i) {
		case 1:
			System.out.println("1");
		case 0:
			System.out.println("0");
		case 2:
			System.out.println("2");
		default:
			System.out.println("default");
			break;
		case 3:
			System.out.println("3");
		}
	}

}
